import Vue from 'vue'
import App from './App.vue'
import router from './router'
import axios from 'axios';
//引入element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './plugins/mavon-editor.js';
import hljs from "highlight.js";
import 'highlight.js/styles/sunburst.css';
import './axios.js';

Vue.config.productionTip = false
Vue.prototype.$axios= axios

Vue.directive("highlight", function (el) {
  let blocks = el.querySelectorAll("pre code");
  blocks.forEach((block) => {
    hljs.highlightBlock(block);
  });
 });

Vue.config.productionTip = false;
Vue.use(ElementUI);

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
